package com.west_traveler.inteface;

import com.west_traveler.entity.entity_anchor.EntityAnchor;
import com.west_traveler.entity.entity_category.EntityCategory;
import com.west_traveler.entity.entity_category.entity_category_second.Entity_Cate_Fra;
import com.west_traveler.entity.entity_category.entity_category_second.Entity_Cate_single;
import com.west_traveler.entity.entity_editor.Special;
import com.west_traveler.entity.entity_editor.SpecialBean;
import com.west_traveler.entity.entity_editor.SpecialListenList;
import com.west_traveler.entity.entity_ranking_page.RankingFirstData;
import com.west_traveler.entity.tab.Tab;
import com.west_traveler.entity.entity_editor.Info;
import com.west_traveler.entity.entity_find_second_hot_recommend.SecondHotRecommendAlbum;
import com.west_traveler.entity.entity_find_second_hot_recommend.SecondHotRecommendDetail;
import com.west_traveler.entity.entity_project.Project;
import com.west_traveler.entity.entity_ranking_page.RankingFirstData;
import com.west_traveler.entity.tab.Tab;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Description:网络连接接口
 * created at 2016/12/2 11:18
 *
 * @author: 黄昌友
 */

//发现界面栏目条
//        http://mobile.ximalaya.com/mobile/discovery/v1/tabs?device=android
public interface HttpService {

    //获得发现界面栏目条
    @GET("mobile/discovery/v1/tabs")
    Call<Tab> getTabs(@Query("device") String s);

    //http://mobile.ximalaya.com/mobile/discovery/v3/recommends?channel=and-a1&device=android&includeActivity=true&includeSpecial=true&scale=2&version=4.3.98
    //推荐界面顶部图片   听资讯，今日最火，经典必听等8个  小编推荐和精品听单
    @GET("mobile/discovery/v3/recommends")
    Call<Info> getViewPagerUsedImg(@Query("channel") String channel, @Query("device") String device, @Query("includeActivity") boolean includeActivity, @Query("includeSpecial") boolean includeSpecial,@Query("scale") int s, @Query("version") String versiono);

    //推荐界面  猜你喜欢 到 听财经  接口
    //http://mobile.ximalaya.com/mobile/discovery/v1/recommend/hotAndGuess?device=android
    @GET("mobile/discovery/v1/recommend/hotAndGuess")
    Call<Project> getList(@Query("device") String device);


    //主播界面
    //http://mobile.ximalaya.com/m/explore_user_index?device=android&page=3
    //                           m/explore_user_index?device=android&page=3
    @GET("m/explore_user_index")
    Call<EntityAnchor> getAnchorList(@Query("device") String device, @Query("page") int page);


    //获取发现榜单界面接口
    @GET("mobile/discovery/v2/rankingList/group?channel=and-a1&device=android&includeActivity=true&includeSpecial=true&scale=2&version=4.3.98")
    Call<RankingFirstData> getRankingFirstData();

    //http://mobile.ximalaya.com/mobile/discovery/v1/categories?channel=and-a1&device=android&picVersion=13&scale=2
    @GET("mobile/discovery/v1/categories")
    Call<EntityCategory> getCategory(@Query("channel") String channel, @Query("device") String device, @Query("picVersion") int picVersion, @Query("scale") int scale);

    //精品听单二级接口
    @GET("m/subject_detail?device=android")
    Call<SpecialListenList> getSpecialList(@Query("id") int id);

    //    推荐二级界面接口 其中一个是详情： 另一个是节目：
    //详情
//    http://mobile.ximalaya.com/mobile/v1/album/detail?albumId=3726156
    @GET("mobile/v1/album/detail")
    Call<SecondHotRecommendDetail> getRecommendDetail(@Query("albumId") long l);

    //    节目
//    http://mobile.ximalaya.com/mobile/v1/album?albumId=3726156&device=android&pageId=null&pageSize=20
    //http://mobile.ximalaya.com/mobile/v1/album?albumId=3581543&device=android&pageId=null&pageSize=20
    //http://mobile.ximalaya.com/mobile/v1/album?albumId=3581543&device=android&isAsc=true&pageId=1&pageSize=20&pre_page=0&source=5&statEvent=pageview%2Falbum%403581543&statModule=热播小说&statPage=category%40有声书&statPosition=1
    @GET("mobile/v1/album")
    Call<SecondHotRecommendAlbum> getRecommendAlbum(@Query("albumId") long l, @Query("device") String device, @Query("pageId") String pageId, @Query("pageSize") int page);


    //http://mobile.ximalaya.com/mobile/discovery/v2/category/
    // recommends?categoryId=3&contentType=album&device=android&version=5.4.3
    @GET("mobile/discovery/v2/category/recommends")
    Call<Entity_Cate_Fra> getEntity_Cate_Fra(@Query("categoryId") int categoryId,@Query("contentType") String contentType,@Query("device") String device,@Query("version") String version);


    //http://mobile.ximalaya.com/mobile/discovery/v1/category/album
    // ?calcDimension=hot&categoryId=3&device=android&pageId=1&pageSize=20&status=0&tagName=言情
    @GET("mobile/discovery/v1/category/album")
    Call<Entity_Cate_single> getEntity_Cate_single(@Query("calcDimension") String hot,@Query("categoryId") String categoryId,@Query("device") String android,@Query("pageId") int pageId,@Query("pageSize") int pageSize,@Query("status") int status,@Query("tagName") String tagName);
}
